﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
	<head>
		<title></title>
	</head>
	<body>
	
	    <p>
            The WorkNodeFramework project is a dynamic object-oriented db engine allows the 
            user can insert, update, delete, query objects easily and productivity. Here are 
            a few examples for illustration:
        </p>
        
            //Initializes a WorkNodeService
            <br />
            
            WorkNodeService service = new WorkNodeService();
        
       <br />
            //Create a new user and stores it:
        <br />
            User user = new User();
        <br />
            user.UserName = &quot;UserName&quot;;
        <br />
            user.FullName = &quot;Full name with default culture&quot;; //You can set to more culture: 
            user[&quot;FullName&quot;,&quot;en-US&quot;]=&quot;..&quot;, ect.
        <br />
            user.Email = &quot;<a href="mailto:User@email.com">User@email.com</a>&quot;;
        <br />
            service.Insert&lt;User&gt;(&quot;/Users&quot;,user);
        <br />
            //Edit the user 
            <br />
            user.FullName = &quot;New full name&quot;;
       <br />
            //Add some additional properties:
        <br />
            user[&quot;Description&quot;,&quot;en-US&quot;]=&quot;This is a description&quot;;
        <br />
            user.Set&lt;int&gt;(&quot;Age&quot;,28);
        <br />
            user.Set&lt;bool?&gt;(&quot;Gender&quot;,true);
        <br />
            user.Set&lt;Status&gt;(&quot;Status&quot;,Status.NewMember); ...
        <br />
            //executes updating: service.UpdateNode&lt;User&gt;(user);
        <br />
            //Query
        <br />
            //Get all users
        <br />
            WorkNodeReader&lt;User&gt; users = service.GetNodes&lt;User&gt;(&quot;/Users&quot;);
        <br />
            //Get all users with predicates:
        <br />
            users = service.GetNodes&lt;User&gt;(&quot;/Users&quot;, u =&gt; u.Status == Status.NewMember &amp;&amp; 
            u.Age &gt; 15); ...
	
	</body>
</html>